<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			#box{
				width: 200px;
				height: 200px;
				position: absolute;
				top: 200px;
			}
			#box img{
				width: 200px;
				height: 200px;
			}
		</style>
	</head>
	<body style="height: 5000px;">
		<div id="box">
			<img src="xxxy.jpg" >
		</div>
	</body>
	<script src="../JS/MyAnimation2.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		window.onload = function(){
			var box = document.getElementById('box')
			var box_top = box.offsetTop;
			window.onscroll = function(){
				var scroll = document.documentElement.scrollTop || document.body.scrollTop;
				trans(box,{'top':scroll+box_top})
			}
		}
	</script>
</html>
